﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
    <link href="@Url.Content("~/Content/admin_style.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/paging.js")" type="text/javascript"></script>
    <link href="@Url.Content("~/Content/menu.css")" rel="stylesheet" type="text/css" />
    <link rel="shortcut icon" href="/Content/favicon.ico" type="image/ico" />
</head>
<body>
    <div class="page">
        <header>
            <div id="header" >
            </div>
            <div id="title" >
                <h1>Biblioteca On-Line</h1>
            </div>
            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
            </div>
            
            <nav>
                <ul id="menu">
                    <li>@Html.ActionLink("Inicio", "Index", "Home")</li>
                    <li>@Html.ActionLink("Acerca de", "About", "Home")</li>
                    <li>@Html.ActionLink("Materiales", "Index", "Material")</li>
                    <li>@Html.ActionLink("Reservas", "Index", "Reservas")</li>
                    <li>@Html.ActionLink("Busqueda", "Busqueda", "Material")</li>
                    @{if (User.Identity.IsAuthenticated && !HttpContext.Current.User.IsInRole("Administrador"))
                      {
                          <li>@Html.ActionLink("Movimientos", "Movimientos", "Usuario", new {cuenta = User.Identity.Name}, null)</li>
                      }
                    }
                    @{
                        if(HttpContext.Current.User.IsInRole("Administrador"))
                        {
                        <li>@Html.ActionLink("Datos Internos", "Index", "Datos")</li>
                        }    
                    }
                    
                </ul>
            </nav>
            
        </header>
        <section id="main">
            @RenderBody()
        </section>      
        <footer>
            <p>Desarrollo de Aplicaciones Empresariales - Año 2013</p>
        </footer>
        
    </div>
</body>
</html>
